#ifndef BUTON_H_
#define BUTON_H_
#include <glut.h>
#include <string.h>
#include "functii_callback.h"


typedef void (*ApelFunctie)(char *);
class buton
{
public:
	GLdouble   x;							
	GLdouble   y;							
	GLdouble   w;							
	GLdouble   h;							
	int	  state;						
	int	  highlighted;					
char* comm;
	char* label;
	ApelFunctie Apel;	
	buton(GLdouble,GLdouble,GLdouble,GLdouble,int,int,char *,ApelFunctie);
	void Setcomm(char *);
	bool clicked(GLdouble,GLdouble);
	void release(GLdouble,GLdouble,GLdouble,GLdouble);
	void press(GLdouble,GLdouble);
	bool pasiv(GLdouble,GLdouble,GLdouble,GLdouble);
	void draw();
	virtual ~buton(void);
};

#endif

